﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - WebApplication1</title>

    <environment names="Development">
        <link rel="stylesheet" href="~/dist/styles.css" />
    </environment>
    <environment names="Staging,Production">
        <link rel="stylesheet" href="~/dist/styles.css" asp-append-version="true" />
    </environment>

</head>
<body>
    @await Html.PartialAsync("_Header");

    <partial name="_CookieConsentPartial" />

    <div class="container body-content">
        @RenderBody()
        <hr />
        <footer>
            <p>&copy; 2019 - Webpack+Dotnet Core</p>
        </footer>
    </div>

    <environment names="Development">
        <script src="~/dist/main.js"></script>        
    </environment>
    <environment names="Staging.Production">
          <script src="~/dist/main.js" asp-append-versio="true"></script>      
    </environment>
 
</body>
</html>